<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">所有应用测试表</a></li>
        <li><a href="{:url('AdminApptest/add')}">添加应用测试表</a></li>
        <li><a href="/portal/admin_category/index/category/146.html?backOk=1">分类管理</a></li>
    </ul>
    <form class="well form-inline" method="post" action="{:url('AdminApptest/index')}" style="margin-top:15px;">
        {//列表页顶部查询字段}
        		&nbsp;标题:
		<input type="text" class="form-control" name="title" value="{$title|default=''}" placeholder="请输入标题">
 		&nbsp;分类:
 		<select title="请选择分类" class="form-control" name="cateid">{$cateid_tree|default=''}</select>
 		&nbsp;性别:
 		<select title="请选择性别" class="form-control" name="type2">{$type2_tree|default=''}</select>
		&nbsp;年龄:
		<input type="text" class="form-control" name="intfield" value="{$intfield|default=''}" placeholder="请输入年龄">
		&nbsp;每页行数:
		<input type="text" name="page_num" class="form-control" value="{$page_num|default='10'}" style="width: 50px">
        &nbsp;&nbsp;
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('AdminApptest/index')}">重置</a>
        &nbsp;
        <a class="btn btn-success" href="{:url('AdminApptest/export')}">导出</a>
    </form>
    <form class="js-ajax-form" action="" method="post">
        <div class="table-actions">
            {//批量设置字段值}
            <button class="btn btn-success btn-xs js-ajax-submit" type="submit"
                    data-action="{:url('AdminApptest/setType1',array('f'=>0))}"
                    data-subcheck="true" data-msg="您确定启用吗？">启用
            </button>
            <button class="btn btn-warning btn-xs js-ajax-submit" type="submit"
                    data-action="{:url('AdminApptest/setType1',array('f'=>1))}"
                    data-subcheck="true" data-msg="您确定禁用吗？">禁用
            </button>
            {//批量删除}
            <button class="btn btn-danger btn-xs js-ajax-submit" type="submit"
                    data-action="{:url('AdminApptest/deleteRows')}" data-subcheck="true"
                    data-msg="确定删除吗？">删除
            </button>
        </div>

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="15">
                    <label>
                        <input type="checkbox" class="js-check-all"
                               data-direction="x" data-checklist="js-check-x">
                    </label>
                </th>
                <th>ID</th>
				<th>标题</th>
				<th>分类</th>
				<th>启用</th>
				<th>性别</th>
				<th>年龄</th>
				<th>毕业学校</th>
				<th>个性签名</th>

                <th width="200">操作</th>
            </tr>
            </thead>
            <notempty name="list">
                <foreach name="list" item="vo">
                    <tr>
                        <td>
                            <input type="checkbox" class="js-check" data-yid="js-check-y"
                                   data-xid="js-check-x" name="ids[]" value="{$vo.id}">
                        </td>
                        <td>{$vo.id}</td>
						<td>{$vo.title}</td>
						<td>{$vo.cateid}</td>
						<td>{$vo.type1}</td>
						<td>{$vo.type2}</td>
						<td>{$vo.intfield}</td>
						<td>{$vo.field1}</td>
						<td>{$vo.field2}</td>

                        <td>
                            <a title="编辑" class="btn btn-xs btn-primary"
                               href="{:url('AdminApptest/edit',array('id'=>$vo['id']))}">编辑</a>
                        </td>
                    </tr>
                </foreach>
            </notempty>
        </table>
        <div class="well well-sm text-danger"  style="margin-bottom: 0">
            合计:{$total|default='0'}
            年龄最大值:{$max_intfield|default='0'}
			&nbsp;&nbsp;年龄最小值:{$min_intfield|default='0'}

        </div>
        <div class="text-center">
            <ul class="pagination" style="margin-bottom: 0;margin-top: 10px">{$page|default=''}</ul>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    function reloadPage(win) {
        win.location.reload();
    };
    $(function () {
        setCookie("refersh_time", 0);
    });
</script>
</body>
</html>